package com.scy.service.impl;

import com.scy.mapper.BookMapper;
import com.scy.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 本类用来演示
 *
 * @author wwh
 * @date 2024/7/4 11:39 $
 */

@Service
public class BookserviceImpl implements BookService {

    @Resource
    BookMapper bookMapper;

    @Override
    public boolean delBook(Long bookId) {

        int i = bookMapper.deleteById(bookId);

        return i>0?true:false;

    }
}
